//
// Created by Castle on 2025/10/28.
//

#include <iostream>
using namespace std;

int main() {
    // 数据类型转换
    double F,C;
    cin >> C;
    F = 9 / 5.0 * C + 32;
    cout << F << endl;
    return 0;
}